<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/6/006
  Time: 18:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--设置url，${pageContext.request.contextPath}这是el表达式--%>
<form action="${pageContext.request.contextPath}/sf" method="get">
    <h1>首页 index.jsp</h1>
    用户名:
    <input type="text" name="username">
    <br/><br/>
    密码:
    <input type="password" name="password">
    <br/>
    <br/>
    <input type="submit">
</form>

</body>
</html>
